﻿//***********************************************************************
// * Module:   TbBstBsznAdd
// * 作者:  曹荣芝
// * Modified: 2013/5/5
// * Purpose: Definition of the Class TbBstBsznAdd
// ***********************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XWG;
using XWG.JWBST;
using XWG.JWBST.JWBSTEntity;
using XWG.JWBST.JWBSTBLL;
using XWG.JWBST.JWBSTSPConst;
using XWG.Framework.MSException;
using System.Data;
namespace JWBSTAPP
{
    public partial class TbBstBsznAdd : JWBSTAPP.CommonClass.PageBases
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindSelEnabled();
                BindSelCID();
            }
        }

        /// <summary>
        /// 绑定是否热点
        /// </summary>
        private void BindSelEnabled()
        {
            var list = XWG.JWBST.JWBSTBLL.TbBstFlfgBLL.GetDictionaryByCode("bool");
            selEnabled.DataSource = list;
            selEnabled.DataTextField = "Description";
            selEnabled.DataValueField = "Code";
            selEnabled.DataBind();
            selEnabled.Items.Insert(0, new ListItem("请选择", ""));
            selEnabled.Value = "";
        }
        /// <summary>
        /// 绑定分类名称
        /// </summary>
        private void BindSelCID()
        {
            var list = XWG.JWBST.JWBSTBLL.TbBstBsznBLL.GetDictionaryByCode("bszn");
            selCid.DataSource = list;
            selCid.DataTextField = "Description";
            selCid.DataValueField = "Code";
            selCid.DataBind();
            selCid.Items.Insert(0, new ListItem("请选择", ""));
            selCid.Value = "";

        }
    }
}


